package com.hengpeng.itfin.tools;
/**
 * ThreadPoolExecutor线程池框架，执行器应用
 * 创建固定大小的线程池
 * @author weiyuan
 *
 */
public class Main {

	public static void main(String[] args) {
		PoolServer server = new PoolServer(30); 
		for (int i = 0; i < 100; i++) {
			Task task = new Task("Task"+i);
			server.executeTask(task);
		}
		server.endServer();
	}

}
